<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="css/eui.css">
    <style>
        header{
            background-color: red;
            line-height: 50px;
            text-align: center;
            /*height: 100px !important;*/
            /*elementUI框架会让header高度为60
            通过!important提升优先级*/
        }
        main{
            background-color: green;
            line-height: 200px;
            text-align: center;
        }
        footer{
            background-color: blue;
            line-height: 50px;
            text-align: center;
        }
        aside{
            background-color: #0aa1ed;
        }
    </style>
</head>
<body>
<div id="app">
    <!--<el-container>：外层容器。当子元素中包含
    <el-header> 或 <el-footer> 时，
    全部子元素会垂直上下排列，否则会水平左右排列。
    <el-header>：顶栏容器。
    <el-aside>：侧边栏容器。
    <el-main>：主要区域容器。
    <el-footer>：底栏容器。-->
    <el-container>
        <el-header height="100px">Header</el-header>
        <el-main>Main</el-main>
    </el-container>
    <h1>头体脚</h1>
    <el-container>
        <el-header>Header</el-header>
        <el-main>Main</el-main>
        <el-footer>Footer</el-footer>
    </el-container>
    <h1>左右</h1>
    <el-container>
        <el-aside width="200px">Aside</el-aside>
        <el-main>Main</el-main>
    </el-container>
    <h1>头 侧边框 main</h1>
    <el-container>
        <el-header>Header</el-header>
        <el-container>
            <el-aside width="200px">Aside</el-aside>
            <el-main>Main</el-main>
        </el-container>
    </el-container>
    <h1>header (aside (main footer))</h1>
    <el-container>
        <el-header>Header</el-header>
        <el-container>
            <el-aside width="200px">Aside</el-aside>
            <el-container>
                <el-main>Main</el-main>
                <el-footer>Footer</el-footer>
            </el-container>
        </el-container>
    </el-container>
    <h1>aside(header main)</h1>
    <el-container>
        <el-aside width="200px">Aside</el-aside>
        <el-container>
            <el-header>Header</el-header>
            <el-main>Main</el-main>
        </el-container>
    </el-container>
</div>
</body>
<!-- import Vue before Element -->
<script src="js/vue.js"></script>
<!-- import JavaScript -->
<script src="js/eui.js"></script>
<script>
    let v=new Vue({
        el: '#app',
        data: function() {
            return { }
        }
    })
</script>
</html>